package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.vo.EmployeeVO;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);


    /**
     * 创建
     *
     * @param employeeDTO 员工dto
     */
    void create(EmployeeDTO employeeDTO);

    /**
     * 选择页面
     *
     * @param employeePageQueryDTO 员工页面查询dto
     * @return {@link PageResult}
     */
    PageResult selectPage(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 更新状态
     *
     * @param id     id
     * @param status 状态
     */
    void updateStatus(Long id, Integer status);

    /**
     * 查询通过id
     *
     * @param id id
     * @return {@link EmployeeVO}
     */
    EmployeeVO queryById(Long id);

    /**
     * 更新通过id
     *
     * @param employeeDTO 员工dto
     */
    void updateById(EmployeeDTO employeeDTO);
}
